
#ifndef	__VERTEX_ARRAY_OBJECT__
#define	__VERTEX_ARRAY_OBJECT__

#include	"../GL/libExt/libExt.h"
namespace gname
{
class	VertexArray
{
	GLuint	id;
	
public:
	VertexArray ()
	{
		glGenVertexArrays ( 1, &id );
	}
	
	~VertexArray ()
	{
		glDeleteVertexArrays ( 1, &id );
	}
	
	bool	isOk () const
	{
		return glIsVertexArray ( id );
	}
	
	void	bind ()
	{
		glBindVertexArray ( id );
	}
	
	void	unbind ()
	{
		glBindVertexArray ( id );
	}
};
};

#endif
